#ifndef Salle_h
#define Salle_h

#include <iostream>
#include <string>
#include <vector>
#include <map>

#include "ConversionTool.h"
#include "Materiel.h"
#include "Liste.h"

using namespace std;


enum Direction {
	NORD,
	EST,
	SUD,
	OUEST
};


class Issue;
class Salle {
    
 private:
    string nom;
    map<Direction, Issue *> issues;
    Liste<Materiel> objets;
    
 public:
	 
	Salle(string nom);
	virtual ~Salle();
	string toString();
	void ajouteIssue(Direction direction, Issue *issue);
	void supprimeIssue(Direction direction);
	Issue *getIssue(Direction direction);
	
	void ajouteObjet(Materiel *objet);
	Liste<Materiel> &prendreObjets();
	void prendreObjets(Liste<Materiel> &objets);
	
	friend ostream &operator <<(ostream &os, const Salle &salle);
};
#endif
